package org.web.projectStandardPlatform.client.config.demoConfig;


import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.validation.annotation.Validated;

import jakarta.validation.constraints.Size;

@PropertySource(value = {"classpath:application.properties", "classpath:database.properties"},
                name = "ss",
                encoding = "utf-8",
                ignoreResourceNotFound = true)
@ConfigurationProperties(prefix = "abc.eee")
@Configuration
@Validated
@Getter
public class MyConfig {

    @Size(max = 2)
    @Value("${language:python}")
    private String language;

    @Size(max = 2)
    private String abc;

}
